/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: RedisManager
 * Author:   zhouheng
 * Date:     2019/6/19 8:23
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.golden.activity.util;

import com.zhouh.golden.activity.domain.ActDrawAward;
import com.zhouh.golden.activity.dto.ActivityTurntableDrawReq;
import com.zhouh.golden.activity.service.processor.constants.DrawContants;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zhouheng
 * @create 2019/6/19
 * @since 1.0.0
 */
public class RedisManager {

    public static String getAwardRedisKey(ActDrawAward actDrawAward){
        return DrawContants.DRAW_AWARD+actDrawAward.getAwardType()+":"+actDrawAward.getId();
    }

    public static String getDrawingRedisKey(ActivityTurntableDrawReq activityTurntableDrawReq) {
        return DrawContants.DRAW_AWARDING + activityTurntableDrawReq.getUserId();
    }
}